@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

:root {
    font-size: 16px;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --border-radius: none;
}

body {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: lavender;
}

h4,
h3 {
    text-transform: uppercase;
}

h3 {
    border-bottom: 0.0625rem solid #ccc;
    padding-bottom: 0.625rem;
    margin: 2.5rem 0 0.625rem;
}

label {
    display: inline-block;
    margin: 0.625rem 0 0.3125rem 0;
}

input[type="text"],
input[type="number"] {
    box-sizing: border-box;
    width: 100%;
    padding: 0.625rem;
    display: block;
    font-size: 1rem;
    border: 0.0625rem solid #ddd;
    outline-color: #1a1a1a;
    border-radius: var(--border-radius);
}

.container {
    width: 23.75rem;
    margin: 1.875rem auto;
}

.container .balance {
    font-size: 2rem;
}

.money {
    font-size: 1.25rem;
    letter-spacing: 0.0625rem;
    margin: 0.3125rem 0;
}

.money:before {
    content: "$";
}

.plus {
    color: #2b9818;
}

.lose {
    color: #981818;
}

.in-exp-container {
    display: flex;
    justify-content: space-between;
    margin: 1.25rem 0;
    padding: 1.25rem;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.in-exp-container div:first-of-type {
    border-right: 1px solid #ddd;
}

.in-exp-container > div {
    flex: 1;
    text-align: center;
}

.list {
    max-height: 12.5rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 2.5rem;
    overflow-x: visible;
    overflow-y: auto;
}

.list::-webkit-scrollbar {
    display: none;
}


.list li {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: .625rem;
    padding: 0.625rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    color: #1a1a1a;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: .5s;
    z-index: 2;
}

.list li:hover{
    width: 94%;
}


.delete-btn {
    padding: 0.2rem 0.35rem;
    font-size: 1.25rem;
    line-height: 1.25rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: -1.875rem;
    border: none;
    background-color: #981818;
    color: white;
    transform: translateY(-50%);
    transition: all .3s;
}

.list li.plus {
    border-right: 0.375rem solid #2b9818;
}

.list li.lose {
    border-right: 0.375rem solid #981818;
}

.btn {
    width: 100%;
    display: block;
    margin: 1rem 0 1.875rem;
    padding: 0.625rem;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    background-color: royalblue;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.toast {
    padding: 0.625rem;
    position: fixed;
    bottom: -10%;
    background-color: #fff;
    opacity: 0;
    border-radius: var(--border-radius);
    transition: bottom .2s ease-in-out,
                opacity .2s;
}

.toast.show-toast {
    bottom: 10%;
    opacity: 1;
}